<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>


    <div id="box">
        <!-- v-text会解析请属性变量的html标签 
        标签里面的内容会被属性值覆盖
            等价于{{}}取值
        -->
        <span v-text="html"></span>
    </div>

</body>

<script src="https://cdn.bootcss.com/vue/2.6.11/vue.js"></script>
<script>
    new Vue({
        el: '#box',
        data: {
            html: '<h2>啦啦啦</h2>'


        }


    })
</script>

</html>